package com.lj.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lj.system.mapper.SysPostMapper;
import com.lj.system.model.SysPost;
import com.lj.system.service.ISysPostService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 职位service
 *
 * @author 小李飞刀
 */
@Service
public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> implements ISysPostService {

    @Resource
    private SysPostMapper postMapper;

    /**
     * 根据用户ID查询岗位信息
     *
     * @param userId 用户ID
     * @return 结果
     */
    @Override
    public List<SysPost> selectPostListByUserId(Long userId) {
        return postMapper.selectPostListByUserId(userId);
    }
}
